#include<bits/stdc++.h>

using namespace std;
typedef long long ll;
int a[20] = {1, 2, 3, 4, 5};
int book[20] = {0};
int k = 10;

int n;

int main() {
    n = 5;
    for (int i = 0; i < (1 << n); i++) {
        int x = i;
        for (int j = 0; j < n; j++) {
            book[j] = x & 1;
            x >>= 1;
        }

        int tot = 0;
        for (int j = 0; j < 5; j++) {
            if (book[j] == 1) {
                tot += a[j];
            }
        }
        if (tot == k) {
            for (int j = 0; j < n; j++)
                cout << book[j];
            cout << endl;
        }
    }
    return 0;
}